home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / Run & Stumpy / source / aelist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-19  |  969 b   |  50 lines  |  [TEXT/MPS ]

  1. #ifndef aelist_h
  2. #define aelist_h
  3.  
  4. #include <appleevents.h>
  5.  
  6. #ifndef inttypes_h
  7. #include "inttypes.h"
  8. #endif
  9. #ifndef errorsource_h
  10. #include "errorsource.h"
  11. #endif
  12. #ifndef aedesc_h
  13. #include "aedesc.h"
  14. #endif
  15.  
  16. class aelist: public aedesc
  17.   {
  18.     public:
  19.         aelist()                            { error= AECreateList( 0,0,0,this ); }
  20.                 
  21.         void append( DescType, void *, uint32 size );
  22.         void append( DescType, Handle );
  23.         void append( const AEDesc& );
  24.         
  25.         uint32 countitems();
  26.         
  27.         OSErr getnth( uint32 index,
  28.                           DescType desired,
  29.                           AEKeyword& key,
  30.                           DescType& actualtype,
  31.                           void *data,
  32.                           uint32 maxsize,
  33.                           uint32& truesize );
  34.         
  35.         OSErr getnth( uint32 index,
  36.                           DescType desired,
  37.                           AEKeyword& key,
  38.                           DescType& actualtype,
  39.                           Handle& result );
  40.         
  41.         OSErr getnth( uint32 index,
  42.                           DescType desired,
  43.                           AEKeyword& key,
  44.                           AEDesc& result );
  45.         
  46.         operator AEDescList&()                    { return (AEDescList&)*this; }
  47.   };
  48.  
  49. #endif aelist_h
  50.